package com.example.springdemo.demos.entity;

import lombok.Data;

import javax.xml.bind.annotation.*;
import java.util.List;

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
@Data
public class Person {
    String name;
    int age;
    String gender;
    String address;

    List<Person> children;
}

